Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-generate binary tests with split assertions #405

Merged

Conversation

tommyschaefer
Copy link
Contributor

@tommyschaefer tommyschaefer commented Jul 28, 2016

Resolves #404

With changes proposed at exercism/problem-specifications#303 and based on test data proposed at exercism/problem-specifications#305.

This PR includes two changes:

  • Re-generate tests from exercism/x-common
  • Remove compound assertion logic from BinaryCases since all tests with multiple assertions have been split into separate tests.

Thank you so much for your time and feedback!

@tommyschaefer
Copy link
Contributor Author

Hmm... Looks like the build is failing because one of the test names causes a line in the test file to exceed 80 cols. I'll see if I can come up with a shorter name and regenerate! 😄

@Insti
Copy link
Contributor

Insti commented Jul 28, 2016

Does the version number need to increment?

@tommyschaefer
Copy link
Contributor Author

tommyschaefer commented Jul 28, 2016

I think based on @kytrinyx's comment on #394:

If solutions that pass the ungenerated test file would also pass the generated one, I wouldn't change the version.

Probably not? But maybe?

The only change made to the original assertions is that we now test that 01201 is invalid instead of 012. Do you think that warrants a version bump?

@Insti
Copy link
Contributor

Insti commented Jul 28, 2016

Seems fine without a version bump then. Good job.

@Insti
Copy link
Contributor

Insti commented Jul 28, 2016

Waiting on: exercism/problem-specifications#305

@Insti Insti added the ready label Jul 28, 2016
* Regenerate tests from latest exercism/problem-specifications#305 revision
* Remove compound assertion logic from BinaryCases since all tests
  with multiple assertions have been split into separate tests.
* Use JSON null to indicate invalid input
@tommyschaefer tommyschaefer force-pushed the binary/split-compound-assertions branch from 09d4054 to e629343 Compare July 28, 2016 20:04
@Insti Insti merged commit ac97b2f into exercism:master Jul 28, 2016
@tommyschaefer tommyschaefer deleted the binary/split-compound-assertions branch July 28, 2016 20:18
gchan pushed a commit to gchan/xruby that referenced this pull request Oct 18, 2016
@Insti Insti removed the ready label Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants